using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class game : MonoBehaviour//游戏胜利
{
    public GameObject PauseGamePane;
    // Start is called before the first frame update
    private void OnTriggerEnter(Collider other)
    {
        Debug.Log(other.name + "");
        Time.timeScale = 0f;
        hideIt(true);

    }
    public void hideIt(bool show)
    {
        PauseGamePane.SetActive(show);
    }
}
